package pl.skubicha.response;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.validation.constraints.Size;

import pl.skubicha.domain.Subjects;
import pl.skubicha.domain.Users;

public class GroupDTO implements Serializable {

	private static final long serialVersionUID = 7694112037043015024L;

	private Integer id;

	@Size(min=1, message="Pole nie może być puste! ")
	private String groupName;
	private String numericGroupName;

	private Set< Users > users = new HashSet< Users >();
	private Set< Subjects > subjects = new HashSet< Subjects >();

	public Integer getId() {
		return id;
	}

	public void setId( final Integer id ) {
		this.id = id;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName( final String groupName ) {
		this.groupName = groupName;
	}

	public String getNumericGroupName() {
		return numericGroupName;
	}

	public void setNumericGroupName( final String numericGroupName ) {
		this.numericGroupName = numericGroupName;
	}

	public Set< Users > getUsers() {
		return users;
	}

	public void setUsers( final Set< Users > users ) {
		this.users = users;
	}

	public Set< Subjects > getSubjects() {
		return subjects;
	}

	public void setSubjects( final Set< Subjects > subjects ) {
		this.subjects = subjects;
	}
}